import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    { path: '/', name: 'home', component: () => import('../views/HomeView.vue') },
    { path: '/first/medium', name: 'first-medium', component: () => import('../views/FirstMediumView.vue') },
    { path: '/first/hard', name: 'first-hard', component: () => import('../views/FirstHardView.vue') },
    { path: '/about',
      name: 'about',
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      // component: () => import('../views/AboutView.vue'),
    },
    // { path: '/second', name: 'second', component: () => import('../views/SecondRoundView.vue') },
    // { path: '/result', name: 'result', component: () => import('../views/ResultView.vue') },
  ],
})

export default router
